//
//  RBTextView.h
//  Culture
//
//  Created by Lan on 2017/8/16.
//  Copyright © 2017年 SummerTea. All rights reserved.
//  有边距,大约是上7左3
//  建议先加到到约束中,再赋值文字

#import <UIKit/UIKit.h>

//IB_DESIGNABLE
@interface RBTextView : UITextView

/** 开启自增高,需要autoLayout布局 */
- (void)enableAutoGrowWithConsWidth:(CGFloat)width minHeight:(CGFloat)minHeight maxHeight:(CGFloat)maxHeight;

//placeHolder
@property(nonatomic, copy)IBInspectable NSString *placeHolder;
@property(nonatomic, assign)IBInspectable CGFloat placeHolderFontSize;
@property(nonatomic, copy)IBInspectable UIColor *placeHolderColor;
- (void)setAttPlaceHolder:(NSAttributedString *)attPlaceHolder;

/** 文字最大长度 */
@property(nonatomic, assign) NSInteger maxTextLength;

/** 监测文字改变 */
@property(nonatomic, copy) void(^textChangeBlock)(NSString *text);

@end
